.class Lorg/microemu/midp/media/audio/PCToneHelper;
.super Ljava/lang/Object;
.source "PCToneHelper.java"


# instance fields
.field private audioFormat:Ljavax/sound/sampled/AudioFormat;

.field private audioInputStream:Ljavax/sound/sampled/AudioInputStream;

.field protected playBuffer:[B

.field private sourceDataLine:Ljavax/sound/sampled/SourceDataLine;


# direct methods
.method public constructor <init>(Ljavax/sound/sampled/SourceDataLine;Ljavax/sound/sampled/AudioInputStream;Ljavax/sound/sampled/AudioFormat;I)V
    .locals 1
    .parameter "sourceDataLine"
    .parameter "audioInputStream"
    .parameter "audioFormat"
    .parameter "size"

    .prologue
    .line 43
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 44
    new-array v0, p4, [B

    iput-object v0, p0, Lorg/microemu/midp/media/audio/PCToneHelper;->playBuffer:[B

    .line 45
    invoke-virtual {p0, p1}, Lorg/microemu/midp/media/audio/PCToneHelper;->setSourceDataLine(Ljavax/sound/sampled/SourceDataLine;)V

    .line 46
    invoke-virtual {p0, p2}, Lorg/microemu/midp/media/audio/PCToneHelper;->setAudioInputStream(Ljavax/sound/sampled/AudioInputStream;)V

    .line 47
    invoke-virtual {p0, p3}, Lorg/microemu/midp/media/audio/PCToneHelper;->setAudioFormat(Ljavax/sound/sampled/AudioFormat;)V

    .line 48
    return-void
.end method


# virtual methods
.method public getAudioFormat()Ljavax/sound/sampled/AudioFormat;
    .locals 1

    .prologue
    .line 72
    iget-object v0, p0, Lorg/microemu/midp/media/audio/PCToneHelper;->audioFormat:Ljavax/sound/sampled/AudioFormat;

    return-object v0
.end method

.method public getAudioInputStream()Ljavax/sound/sampled/AudioInputStream;
    .locals 1

    .prologue
    .line 62
    iget-object v0, p0, Lorg/microemu/midp/media/audio/PCToneHelper;->audioInputStream:Ljavax/sound/sampled/AudioInputStream;

    return-object v0
.end method

.method public getSourceDataLine()Ljavax/sound/sampled/SourceDataLine;
    .locals 1

    .prologue
    .line 52
    iget-object v0, p0, Lorg/microemu/midp/media/audio/PCToneHelper;->sourceDataLine:Ljavax/sound/sampled/SourceDataLine;

    return-object v0
.end method

.method public setAudioFormat(Ljavax/sound/sampled/AudioFormat;)V
    .locals 0
    .parameter "audioFormat"

    .prologue
    .line 77
    iput-object p1, p0, Lorg/microemu/midp/media/audio/PCToneHelper;->audioFormat:Ljavax/sound/sampled/AudioFormat;

    .line 78
    return-void
.end method

.method public setAudioInputStream(Ljavax/sound/sampled/AudioInputStream;)V
    .locals 0
    .parameter "audioInputStream"

    .prologue
    .line 67
    iput-object p1, p0, Lorg/microemu/midp/media/audio/PCToneHelper;->audioInputStream:Ljavax/sound/sampled/AudioInputStream;

    .line 68
    return-void
.end method

.method public setSourceDataLine(Ljavax/sound/sampled/SourceDataLine;)V
    .locals 0
    .parameter "sourceDataLine"

    .prologue
    .line 57
    iput-object p1, p0, Lorg/microemu/midp/media/audio/PCToneHelper;->sourceDataLine:Ljavax/sound/sampled/SourceDataLine;

    .line 58
    return-void
.end method
